<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>运营平台</title>


    <import type="css" basepath="__CSS__" file="bootstrap" />
	<import type="css" basepath="__CSS__" file="datetimepicker" />
	<import type="css" basepath="__CSS__" file="fontawesome" />
	<import type="css" basepath="__CSS__" file="fonts" />
	<import type="css" basepath="__CSS__" file="bootgrid" />
	<import type="css" basepath="__CSS__" file="style" />
	<import type="css" basepath="__CSS__" file="newStudentWeb" />
	
	
</head>

<body>
<div class="topNav">
    <span class="text"><i class="iconfont">&#xe607;</i><a href="{:U('Index/index')}" target="_top">首页</a>&gt;<span>banner管理</span></span>
</div>
<form action="{:U('Banner/index')}" method="post">
<div class="contain">
    <div class="pageTitle">
        <h2 class="title">banner管理</h2>
    </div>
    <a href="{:U('Banner/add')}"> <button type="button" class="btn btn-success btn-lg bannerMangeMargin">+ 添加banner</button></a>
    <button type="submit" class="btn btn-success btn-lg bannerMangeMargin">查询</button>
  
	
	 <select  name="ban_type" class="inpTextOne form-control releaseFormSel" style="width:40%;" >
	         <option value="">全部</option>
                  <foreach name="typeArr" item="val">
			 <option value="{$key}"   <if condition="$key eq $shArray['ban_type']"> selected </if>  >{$val}</option>
		 </foreach>
            </select>


    <div class="tableBoxOne">
        <div class="scroll">
            <table id="grid" class="table table-bordered" data-selection="false" data-multi-select="false" data-row-select="false" data-keep-selection="false">
                <thead>
                <tr>
                    <th data-column-id="01" data-width="80" >类别</th>
                    <th data-column-id="02" data-width="150">名称</th>
                    <th data-column-id="03" data-width="100"  data-formatter="bannerMangeImg" data-sortable="true">图片</th>
					<th data-column-id="01" data-width="80" >上传者</th>
                    <th data-column-id="04" data-width="120">发布时间</th>
                    <th data-column-id="10" data-width="120"  data-formatter="bannerMangeOperation" data-sortable="true">操作</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="list" item="item">
                <tr>
                    <td><if condition="$item.ban_type eq 1">主页<else/>聚餐美食</if></td>
                    <td>{$item.name}</td>
                    <td><img src="/Uploads/bann/{$item.ban_pic}" style="width:80px;height:100px"></td>
					 <td>{$item.author_name}</td>
                    <td>{$item.add_time|date='Y-m-d',###}</td>
                    <td>
                        <a href="{:U('Banner/edit','&id='.$item['id'])}">编辑</a>
                        <a href="{:U('Banner/del','&id='.$item['id'])}">删除</a>
                    </td>
                </tr>
                  </foreach>
                </tbody>
            </table>
             {$page}
        </div>
    </div>
</div>
</form>

<script src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script src="/App/Admin/public/js/bootstrap.min.js"></script>
<script src="/App/Admin/public/js/jquery.datetimepicker.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.min.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.fa.min.js"></script>
<script src="/App/Admin/public/js/time.js"></script>

</body>

</html>